package com.youan.serve.controller.swagger;

import com.youan.pangu.base.bean.validate.InsertValidateGroup;
import com.youan.pangu.base.bean.validate.UpdateValidateGroup;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import com.youan.serve.dao.domain.SyscodeDetail;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;

/**
* <p>
    *  swagger接口描述文件
    * </p>
*
* @author auto_code
* @since 2020-02-29
*/
@Validated
@Api(tags = "SyscodeDetail管理接口")
public interface SyscodeDetailControllerSwagger {

    @ApiOperation(value = "新增一个SyscodeDetail实例")
    SyscodeDetail addSyscodeDetail(@Validated(InsertValidateGroup.class) SyscodeDetail syscodeDetail);

    @ApiOperation(value = "修改一个SyscodeDetail实例")
    SyscodeDetail updateSyscodeDetail(@Validated(UpdateValidateGroup.class) SyscodeDetail syscodeDetail);

    @ApiOperation(value = "获取所有SyscodeDetail实例")
    List<SyscodeDetail> selectAllSyscodeDetail();

    @ApiOperation(value = "根据主键删除一个SyscodeDetail实例")
    void deleteSyscodeDetailByDetailId(@NotBlank String detailId);

    @ApiOperation(value = "根据主键获取SyscodeDetail实例")
    SyscodeDetail selectSyscodeDetailByDetailId(@NotBlank String detailId);

    @ApiOperation(value = "根据sysCodeId获取SyscodeDetail实例")
    List<SyscodeDetail> getSyscodeDetailsBySysCodeId(@NotBlank String sysCodeId);

}

